﻿using System;
using System.Web.UI;
using System.Xml;

namespace PolePosition.v3.WcfService.MapServices
{
    public partial class GpsVisitDistributionPole : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            System.Data.SqlClient.SqlCommand _SqlCommand;
            _SqlCommand = new System.Data.SqlClient.SqlCommand();

            if (Request.QueryString["ID"] != null)
            {
                _SqlCommand.CommandText = "up_MapHtml_GpsVisitDistributionPole";
                _SqlCommand.Parameters.AddWithValue("@Id", Request.QueryString["ID"]);

                string _Xml;
                _Xml = ProjectCommon2.Helpers.SqlHelper.ExecuteScalar<string>(_SqlCommand);

                XmlDocument _XmlDocument;
                _XmlDocument = new XmlDocument();
                _XmlDocument.LoadXml(_Xml);

                FormViewAssetStructure.DataSource = _XmlDocument;
                FormViewAssetStructure.DataBind();
            }
        }
    }
}
